import request from '@/utils/request'

export const queryAllclazzApi = (name,begin,end,page,pageSize)=>request.get(`clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);
export const addclazzApi = (clazz) =>request.post('/clazzs', clazz);

export const queryAllclazzApibyid = (id) =>request.get(`/clazzs/${id}`)

export const  updatempApi =(clazz) =>request.put(`clazzs`,clazz)

export const   deleteclzzApi =(ids) => request.put(`/clazz?ids=${ids}`)